package com.one.rope.mvp.web.common.dto.base;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Weijian.liu
 * @desc 分页共用请求实体
 * @date 2018/12/21
 */
@Data
@ApiModel
public class PageRequestDTO {

  @ApiModelProperty(value = "页码，默认是第一页")
  @JsonProperty(value = "page_no")
  private int pageNo = 1;

  @ApiModelProperty(value = "每页显示的记录数，默认是20")
  @JsonProperty(value = "page_size")
  private int pageSize = 20;
}
